{% extends "bootstrap.html" %}
{% load bootstrap3 %}

{% block bootstrap3_content %}
    <div class="container col-md-2 col-md-offset-5 ">
        <form class="form"  action="/login/" method="post">
            {% csrf_token %}
            <h2 class="form-signin-heading" align="center">登录系统</h2>
            <label for="inputUsername" class="sr-only">username</label>
            <input type="text" name="username" id="inputUsername" class="form-control" placeholder="username" required
                   autofocus>
            <label for="inputPassword" class="sr-only">Password</label>
            <input type="password" name="password" id="inputPassword" class="form-control" placeholder="Password"
                   required>
            <div class="checkbox">
                <label>
                    <input type="checkbox" value="remember-me"> 记住密码
                </label>
            </div>
            <br/>
            <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
            <br/>
            <span style="color: red;">{{ login_err }}</span>
        </form>
    </div>
{% endblock %}